module.exports = function ($scope, $modalInstance, $resource, toaster, item) {

  $scope.bean = item;
  var para = {
    'openid': item.openid
  }

  $resource('/api/ac/uc/userService/getWxInfo', {}, {}).save(para, function(res){
    if(res.errcode === 0){
      $scope.obj = res.data;
    } else {
      toaster.error({title: '', body: '失败，请重试'});
    }
  });

  $scope.close = function(){
    $modalInstance.close();
  }

};